From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0002.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0002.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0002.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0003.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0003.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0003.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0004.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0004.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0004.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0005.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0005.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0005.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0006.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0006.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0006.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0007.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0007.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0007.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0008.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0008.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0008.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0009.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0009.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0009.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0010.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0010.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0010.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0011.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0011.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0011.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0012.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0012.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0012.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0013.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0013.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0013.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0014.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0014.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0014.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0015.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0015.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0015.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0016.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0016.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0016.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0017.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0017.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0017.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0018.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0018.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0018.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0019.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0019.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0019.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0020.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0020.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0020.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0021.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0021.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0021.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0022.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0022.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0022.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0023.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0023.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0023.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0024.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0024.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0024.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0025.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0025.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0025.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0026.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0026.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0026.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0027.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0027.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0027.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0028.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0028.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0028.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0029.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0029.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0029.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0030.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0030.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0030.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0031.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0031.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0031.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0032.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0032.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0032.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0033.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0033.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0033.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0034.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0034.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0034.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0035.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0035.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0035.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0036.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0036.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0036.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0037.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0037.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0037.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0038.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0038.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0038.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0039.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0039.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0039.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0040.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0040.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0040.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0041.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0041.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0041.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0042.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0042.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0042.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0043.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0043.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0043.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0044.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0044.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0044.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0045.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0045.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0045.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0046.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0046.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0046.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0047.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0047.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0047.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0048.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0048.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0048.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0049.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0049.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0049.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0050.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0050.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0050.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0051.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0051.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0051.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0052.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0052.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0052.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0053.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0053.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0053.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0054.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0054.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0054.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0055.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0055.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0055.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0056.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0056.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0056.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0057.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0057.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0057.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0058.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0058.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0058.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0059.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0059.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0059.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0060.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0060.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0060.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0061.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0061.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0061.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0062.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0062.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0062.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0063.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0063.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0063.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0064.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0064.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0064.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0065.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0065.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0065.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0066.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0066.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0066.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0067.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0067.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0067.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0068.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0068.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0068.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0069.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0069.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0069.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0070.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0070.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0070.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0071.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0071.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0071.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0072.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0072.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0072.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0073.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0073.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0073.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0074.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0074.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0074.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0075.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0075.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0075.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0076.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0076.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0076.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0077.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0077.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0077.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0078.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0078.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0078.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0079.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0079.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0079.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0080.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0080.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0080.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0081.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0081.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0081.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0082.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0082.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0082.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0083.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0083.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0083.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0084.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0084.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0084.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0085.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0085.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0085.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0086.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0086.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0086.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0087.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0087.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0087.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0088.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0088.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0088.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0089.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0089.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0089.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0090.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0090.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0090.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0091.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0091.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0091.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0092.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0092.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0092.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0093.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0093.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0093.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0094.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0094.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0094.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0095.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0095.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0095.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0096.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0096.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0096.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0097.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0097.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0097.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0098.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0098.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0098.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0099.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0099.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0099.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0100.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0100.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0100.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0101.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0101.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0101.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0102.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0102.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0102.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0103.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0103.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0103.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0104.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0104.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0104.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0105.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0105.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0105.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0106.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0106.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0106.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0107.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0107.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0107.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0108.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0108.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0108.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0109.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0109.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0109.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0110.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0110.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0110.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0111.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0111.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0111.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0112.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0112.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0112.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0113.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0113.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0113.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0114.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0114.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0114.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0115.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0115.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0115.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0116.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0116.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0116.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0117.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0117.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0117.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0118.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0118.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0118.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0119.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0119.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0119.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0120.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0120.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0120.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0121.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0121.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0121.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0122.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0122.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0122.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0123.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0123.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0123.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0124.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0124.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0124.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0125.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0125.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0125.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0126.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0126.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0126.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0127.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0127.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0127.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0128.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0128.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0128.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0129.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0129.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0129.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0130.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0130.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0130.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0131.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0131.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0131.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0132.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0132.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0132.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0133.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0133.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0133.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0134.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0134.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0134.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0135.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0135.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0135.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0136.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0136.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0136.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0137.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0137.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0137.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0138.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0138.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0138.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0139.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0139.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0139.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0140.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0140.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0140.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0141.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0141.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0141.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0142.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0142.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0142.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0143.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0143.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0143.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0144.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0144.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0144.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0145.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0145.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0145.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0146.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0146.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0146.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0147.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0147.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0147.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0148.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0148.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0148.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0149.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0149.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0149.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0150.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0150.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0150.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0151.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0151.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0151.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0152.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0152.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0152.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0153.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0153.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0153.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0154.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0154.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0154.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0155.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0155.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0155.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0156.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0156.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0156.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0157.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0157.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0157.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0158.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0158.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0158.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0159.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0159.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0159.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0160.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0160.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0160.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0161.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0161.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0161.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0162.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0162.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0162.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0163.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0163.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0163.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0164.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0164.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0164.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0165.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0165.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0165.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0166.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0166.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0166.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0167.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0167.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0167.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0168.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0168.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0168.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0169.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0169.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0169.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0170.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0170.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0170.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0171.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0171.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0171.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0172.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0172.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0172.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0173.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0173.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0173.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0174.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0174.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0174.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0175.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0175.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0175.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0176.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0176.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0176.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0177.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0177.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0177.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0178.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0178.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0178.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0179.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0179.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0179.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0180.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0180.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0180.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0181.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0181.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0181.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0182.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0182.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0182.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0183.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0183.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0183.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0184.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0184.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0184.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0185.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0185.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0185.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0186.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0186.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0186.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0187.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0187.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0187.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0188.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0188.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0188.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0189.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0189.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0189.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0190.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0190.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0190.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0191.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0191.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0191.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0192.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0192.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0192.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0193.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0193.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0193.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0194.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0194.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0194.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0195.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0195.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0195.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0196.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0196.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0196.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0197.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0197.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0197.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0198.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0198.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0198.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0199.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0199.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0199.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0200.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0200.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0200.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0201.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0201.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0201.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0202.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0202.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0202.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0203.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0203.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0203.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0204.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0204.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0204.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0205.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0205.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0205.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0206.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0206.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0206.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0207.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0207.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0207.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0208.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0208.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0208.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0209.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0209.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0209.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0210.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0210.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0210.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0211.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0211.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0211.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0212.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0212.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0212.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0213.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0213.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0213.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0214.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0214.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0214.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0215.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0215.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0215.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0216.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0216.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0216.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0217.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0217.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0217.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0218.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0218.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0218.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0219.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0219.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0219.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0220.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0220.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0220.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0221.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0221.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0221.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0222.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0222.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0222.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0223.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0223.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0223.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0224.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0224.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0224.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0225.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0225.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0225.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0226.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0226.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0226.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0227.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0227.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0227.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0228.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0228.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0228.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0229.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0229.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0229.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0230.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0230.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0230.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0231.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0231.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0231.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0232.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0232.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0232.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0233.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0233.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0233.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0234.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0234.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0234.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0235.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0235.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0235.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0236.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0236.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0236.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0237.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0237.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0237.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0238.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0238.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0238.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0239.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0239.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0239.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0240.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0240.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0240.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0241.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0241.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0241.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0242.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0242.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0242.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0243.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0243.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0243.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0244.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0244.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0244.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0245.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0245.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0245.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0246.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0246.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0246.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0247.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0247.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0247.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0248.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0248.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0248.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0249.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0249.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0249.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0250.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0250.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0250.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0251.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0251.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0251.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0252.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0252.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0252.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0253.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0253.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0253.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0254.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0254.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0254.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0255.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0255.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0255.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0256.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0256.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0256.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0257.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0257.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0257.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0258.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0258.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0258.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0259.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0259.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0259.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0260.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0260.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0260.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0261.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0261.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0261.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0262.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0262.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0262.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0263.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0263.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0263.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0264.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0264.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0264.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0265.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0265.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0265.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0266.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0266.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0266.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0267.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0267.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0267.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0268.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0268.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0268.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0269.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0269.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0269.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0270.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0270.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0270.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0271.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0271.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0271.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0272.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0272.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0272.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0273.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0273.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0273.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0274.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0274.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0274.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0275.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0275.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0275.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0276.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0276.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0276.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0277.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0277.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0277.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0278.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0278.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0278.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0279.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0279.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0279.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0280.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0280.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0280.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0281.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0281.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0281.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0282.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0282.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0282.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0283.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0283.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0283.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0284.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0284.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0284.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0285.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0285.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0285.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0286.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0286.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0286.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0287.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0287.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0287.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0288.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0288.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0288.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0289.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0289.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0289.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0290.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0290.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0290.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0291.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0291.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0291.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0292.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0292.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0292.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0293.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0293.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0293.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0294.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0294.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0294.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0295.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0295.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0295.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0296.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0296.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0296.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0297.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0297.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0297.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0298.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0298.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0298.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0299.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0299.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0299.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0300.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0300.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0300.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0301.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0301.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0301.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0302.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0302.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0302.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0303.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0303.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0303.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0304.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0304.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0304.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0305.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0305.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0305.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0306.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0306.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0306.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0307.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0307.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0307.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0308.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0308.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0308.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0309.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0309.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0309.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0310.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0310.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0310.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0311.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0311.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0311.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0312.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0312.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0312.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0313.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0313.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0313.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0314.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0314.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0314.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0315.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0315.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0315.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0316.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0316.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0316.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0317.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0317.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0317.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0318.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0318.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0318.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0319.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0319.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0319.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0320.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0320.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0320.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0321.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0321.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0321.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0322.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0322.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0322.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0323.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0323.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0323.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0324.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0324.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0324.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0325.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0325.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0325.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0326.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0326.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0326.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0327.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0327.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0327.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0328.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0328.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0328.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0329.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0329.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0329.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0330.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0330.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0330.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0331.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0331.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0331.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0332.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0332.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0332.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0333.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0333.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0333.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0334.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0334.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0334.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0335.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0335.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0335.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0336.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0336.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0336.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0337.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0337.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0337.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0338.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0338.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0338.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0339.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0339.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0339.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0340.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0340.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0340.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0341.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0341.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0341.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0342.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0342.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0342.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0343.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0343.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0343.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0344.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0344.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0344.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0345.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0345.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0345.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0346.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0346.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0346.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0347.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0347.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0347.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0348.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0348.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0348.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0349.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0349.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0349.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0350.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0350.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0350.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0351.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0351.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0351.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0352.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0352.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0352.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0353.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0353.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0353.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0354.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0354.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0354.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0355.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0355.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0355.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0356.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0356.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0356.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0357.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0357.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0357.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0358.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0358.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0358.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0359.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0359.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0359.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0360.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0360.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0360.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0361.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0361.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0361.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0362.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0362.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0362.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0363.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0363.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0363.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0364.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0364.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0364.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0365.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0365.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0365.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0366.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0366.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0366.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0367.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0367.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0367.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0368.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0368.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0368.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0369.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0369.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0369.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0370.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0370.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0370.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0371.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0371.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0371.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0372.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0372.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0372.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0373.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0373.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0373.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0374.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0374.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0374.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0375.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0375.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0375.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0376.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0376.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0376.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0377.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0377.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0377.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0378.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0378.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0378.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From juanmtamayo at gmail.com Thu Apr 13 20:58:00 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Thu, 13 Apr 2006 21:58:00 -0500 Subject: [Rxtx] RXTX documentation Message-ID: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Hi, I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/f9439a7b/attachment-0379.html From tjarvi at qbang.org Fri Apr 14 03:28:20 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Fri, 14 Apr 2006 03:28:20 -0600 (MDT) Subject: [Rxtx] RXTX documentation In-Reply-To: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > Hi, > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, so I > was wondering if I can use the documentation in Sun's site. > > Thanks a lot > > Juan > Hi Juan Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The documentation should work. There are minor corner case differences but in general its the same. Presumably rxtx will support ComAPI 3.0 if/when its design issues are resolved. -- Trent Jarvi tjarvi at qbang.org From juanmtamayo at gmail.com Fri Apr 14 09:59:04 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 10:59:04 -0500 Subject: [Rxtx] RXTX documentation In-Reply-To: References: <8985cf7d0604131958h5a7c996an97f48fed694bd0c0@mail.gmail.com> Message-ID: <8985cf7d0604140859u15eca824sab1a502c7592d01e@mail.gmail.com> Great! thanks a lot. Juan On 4/14/06, Trent Jarvi wrote: > > On Thu, 13 Apr 2006, Juan Manuel Tamayo wrote: > > > Hi, > > > > I'm trying to find documentation for RXTX 2.1 but I couldn't find any, > so I > > was wondering if I can use the documentation in Sun's site. > > > > Thanks a lot > > > > Juan > > > > Hi Juan > > Other than the namespace, rxtx tries to follow CommAPI 2.0 from Sun. The > documentation should work. There are minor corner case differences but in > general its the same. Presumably rxtx will support ComAPI 3.0 if/when its > design issues are resolved. > > -- > Trent Jarvi > tjarvi at qbang.org > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060414/ac879565/attachment-0379.html From juanmtamayo at gmail.com Thu Apr 13 20:46:03 2006 From: juanmtamayo at gmail.com (Juan Manuel Tamayo) Date: Fri, 14 Apr 2006 02:46:03 -0000 Subject: [Rxtx] RXTX Documentation Message-ID: <8985cf7d0604131946g2ec49a54o400667b72be43c03@mail.gmail.com> Hi, Does RXTX 2.1 works as the javax.comm API? I mean, I'm trying to find documentation for RXTX but I couldn't find any, so I was wondering if I can use the documentation in Sun's site. Thanks a lot Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20060413/e38094ee/attachment-0379.html From tjarvi at qbang.org Mon Apr 10 05:29:28 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 05:29:28 -0600 (MDT) Subject: [Rxtx] =?iso-8859-1?q?Serial_I=B2C?= In-Reply-To: <20060410034457.17801.qmail@web53510.mail.yahoo.com> References: <20060410034457.17801.qmail@web53510.mail.yahoo.com> Message-ID: On Mon, 10 Apr 2006, Luiz Jr wrote: > Hello, > > I will be starting the implementation of a system where I will need to > control some devices through an I?C bus. I am thinking about using the > PC as a I?C bus master, so I would like to know if there is anything > similar RXTX for I?C, and if yes, I would like to know more about it's > performance. > > The other option is to use RS-232 to communicate with a PIC microcontroller and make PIC the I?C bus master > instead of the PC. What do you think? > Hi Luiz Right now, rxtx will not work as you hope with i2c. It would be possible to start a class using rxtx for i2c but I suspect you would then want to reconsider the design when you finished. Sometimes hardware is the easier solution. -- Trent Jarvi tjarvi at qbang.org From tjarvi at qbang.org Mon Apr 10 20:12:58 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Mon, 10 Apr 2006 20:12:58 -0600 (MDT) Subject: [Rxtx] Re: Problem in RXTX (fwd) Message-ID: Date: Mon, 10 Apr 2006 20:04:35 -0600 (MDT) Subject: Re: Problem in RXTX > Hi Trent, > > if encountered a problem with the RXTX API (<= 2.1-7r2). When you call > removeEventListener() on a SerialPort without having one added first the > VM crashes at gnu.io.RXTXPort.readByte() (see attached vm log). > > Regards > Thanks Mike, There are a few issues in rxtx if you do not use event listeners. This one is new to me though. Filing a bug in the rxtx bugzilla will mean we get to it eventually. I'm somewhat burried in relocation/trainging/house shopping right now but will be getting to everything. -- Trent Jarvi tjarvi at qbang.org From chinkaiw at hotmail.com Mon Apr 10 22:08:51 2006 From: chinkaiw at hotmail.com (Wang Chinkai) Date: Tue, 11 Apr 2006 04:08:51 +0000 Subject: [Rxtx] How to know what device is connected? Message-ID: Hi, all I will control a computer remotely, some rs232 device will connect to it. I don't know what device will conect to the computer . So, how do I know is there a rs232 device connect to the computer , and what the device is? Thanks. From TEIXOEIRA at terra.es Tue Apr 11 01:26:40 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 09:26:40 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <26096171.1144740400357.JavaMail.root@cps5> Hi! Has RXTX been compiled with GCJ? Thanks! Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From szabo.roland at mithrandir.hu Tue Apr 11 02:04:05 2006 From: szabo.roland at mithrandir.hu (=?UTF-8?B?U3phYsOzIFJvbGFuZA==?=) Date: Tue, 11 Apr 2006 10:04:05 +0200 Subject: [Rxtx] How to know what device is connected? In-Reply-To: References: Message-ID: <443B62F5.7080401@mithrandir.hu> Hi Wang, I don't think there is any way to detect a device like with USB, or sense it's manufacturer/device type. You would need to start listening on the possible ports and wait for incoming data. Based on that you could either "understand" the data, and detect that it's one of your supported devices' protocol, or you could ignore it. I think you could detect a device plugged in (even if it does not send any data), if the device uses hardware flow control, so you could check the CLEAR_TO_SEND or DSR signal. (I've seen hardware that uses the CTS, DSR and RING_INDICATOR signals to signal it's presence). You cannot detect a device if it uses no flow control, and it doesn't start communication first. You could of course "probe" for supported devices, by initiating their protocols one by one, and see if anybody answers within a specified time frame. Basically detecting a device is not possible, you can only detect, if a connected device "speaks" your expected protocol. I just checked your previous email. If you take a look at that pdf file you referred to, what I mentioned above happens there exactly, only they define a generic protocol. You detect the device by monitoring DSR. Then there is an initialization sequence to make sure the device and the computer both support this protocoll (using appropriate signals, and defined timing), then both devices change the baud rate to a well defined value (1200 bps), where the device sends it's id. Now you know the device, and so you know it's capabilities. However, your device needs to support this protocol too! Roland Wang Chinkai wrote: > Hi, all > > I will control a computer remotely, some rs232 device will connect to > it. I don't know what device will conect to the computer . > So, how do I know is there a rs232 device connect to the computer , and > what the device is? > > Thanks. > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From lyon at docjava.com Tue Apr 11 05:27:40 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 06:27:40 -0500 Subject: [Rxtx] GCJ In-Reply-To: <26096171.1144740400357.JavaMail.root@cps5> References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Tue Apr 11 05:09:54 2006 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 11 Apr 2006 05:09:54 -0600 (MDT) Subject: [Rxtx] GCJ In-Reply-To: References: <26096171.1144740400357.JavaMail.root@cps5> Message-ID: Hi There is a directory in rxtx 2.1 that compiled with gcj. I did it as an experient but since then there have been improvements committed. See rxtx-2.1-7/CNI ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7/CNI/ It may need more work. I'm not sure CNI is still the prefered way with gcj. I did run some simple examples with it in the past. What would be very interesting is something like Blackbox from Sun's CommAPI done with gcj. On Tue, 11 Apr 2006, Dr. Douglas Lyon wrote: > Hi All, > I have a student that is using gcj for in his thesis. > It does solve some problems, while causing others. > Is this something you need? > Thanks! > - Doug > >> Hi! >> >> Has RXTX been compiled with GCJ? >> >> Thanks! >> >> >> Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at qbang.org >> http://mailman.qbang.org/mailman/listinfo/rxtx > > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From TEIXOEIRA at terra.es Tue Apr 11 08:52:03 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 16:52:03 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <4066946.1144767123835.JavaMail.root@cps8> Well, I was searching for a java api that let me access a serial port both on windows (sun's comm api is no longer available, as far as I know) and linux, and it would be a very desirable feature that it could be compiled with gcj, I want to develope a fast, portable and small aplication that runs both on embedded wxp and linux. I don't need the binaries to be portable, but the source code. I know there exist a part of the api that's not portable at all but I can cope with it as long as I can replace it. It seems it can be done with rxtx, doesn't it? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 13:27 Para: Asunto: Re: [Rxtx] GCJ Hi All, I have a student that is using gcj for in his thesis. It does solve some problems, while causing others. Is this something you need? Thanks! - Doug >Hi! > >Has RXTX been compiled with GCJ? > >Thanks! > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. From lyon at docjava.com Tue Apr 11 10:11:59 2006 From: lyon at docjava.com (Dr. Douglas Lyon) Date: Tue, 11 Apr 2006 11:11:59 -0500 Subject: [Rxtx] GCJ In-Reply-To: <4066946.1144767123835.JavaMail.root@cps8> References: <4066946.1144767123835.JavaMail.root@cps8> Message-ID: Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at qbang.org >>http://mailman.qbang.org/mailman/listinfo/rxtx > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx > > > > > >Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. > > >_______________________________________________ >Rxtx mailing list >Rxtx at qbang.org >http://mailman.qbang.org/mailman/listinfo/rxtx From TEIXOEIRA at terra.es Tue Apr 11 09:53:34 2006 From: TEIXOEIRA at terra.es (TEIXOEIRA@terra.es) Date: Tue, 11 Apr 2006 17:53:34 +0200 (MEST) Subject: [Rxtx] GCJ Message-ID: <10182838.1144770814119.JavaMail.root@cps9> Hi! No, it doesn't. What about libgcj or gnu's classpath? ----Mensaje original---- De: lyon at docjava.com Recibido: 11/04/2006 18:11 Para: Asunto: Re: [Rxtx] GCJ Hi All, As far as I know, gcj does not support jdk1.5. Thus, gcj is fast, but less compatible. - DL > Well, I was searching for a java api that let >me access a serial port both on windows (sun's >comm api is no longer available, as far as I >know) and linux, and it would be a very >desirable feature that it could be compiled with >gcj, I want to develope a fast, portable and >small >aplication that runs both on embedded wxp and >linux. I don't need the binaries to be portable, >but the source code. I know there exist a >part of the api that's not portable at all but I >can cope with it as long as I can replace it. > > It seems it can be done with rxtx, doesn't it? > > >----Mensaje original---- >De: lyon at docjava.com >Recibido: 11/04/2006 13:27 >Para: >Asunto: Re: [Rxtx] GCJ > >Hi All, >I have a student that is using gcj for in his thesis. >It does solve some problems, while causing others. >Is this something you need? >Thanks! > - Doug > >>Hi! >> >>Has RXTX been compiled with GCJ? >> >>Thanks! >> >> >>Prueba el Nuevo Correo Terra; Seguro, R?pido, Fiable. >> >> >>_______________________________________________ >>Rxtx mailing list >>R